package com.ayi.servlet.backstage; /**
 * @author Ayingzz
 * @create 2021/12/4 15:36
 */

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;

@WebServlet(name = "formDetailsPartServlet", value = "/formDetailsPartServlet")
public class formDetailsPartServlet extends HttpServlet {

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        request.setCharacterEncoding("utf-8");
        response.setContentType("text/html;charset=utf-8");
        request.getSession().setAttribute("bookdetails", request.getParameter("bookdetails"));
        request.getSession().setAttribute("allow0", null);
        request.getSession().setAttribute("allow", "allow");
        response.sendRedirect("backStage.jsp");
    }
}
